<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>楼层管理</title>
     <script type="text/javascript" src="<c:url value='/static/js/admin/information/attributeFloor.js' />"></script>
</head>

<body>
<c:if test="${!empty msg}">
	<div class="alert alert-green fadein-top"><span class="close rotate-hover"></span><strong>提示：</strong>${msg}</div>
</c:if>
<div class="panel admin-panel">
	<div class="panel-head"><strong>楼层属性</strong></div>
	<div class="padding">
		<form id="form" method="post" action="<c:url value='/admin/information/save' />" class="form">
			<input id="id" type="hidden" name="id" value="${information.id}"/>
			<input id="type" type="hidden" name="type" value="${information.type}"/>
			<div class="line">
				<div class="x3">
					<div class="form-group">
						<div class="form-group">
							<div class="label">
								<label for="title">标题</label>
							</div>
							<div class="field">
								<input type="text" class="input" id="title" name="title" value="${information.title}" 
									placeholder="请填写标题" data-validate="required:必填,length#<=50:不超过50个字" />
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="line">
				<div class="x3">
					<div class="form-group">
						<div class="form-group">
							<div class="label">
								<label>图片</label>
							</div>
							<div class="field" style="height:100px;">
								<span>建议尺寸：360像素 * 200像素</span><br/>
								<a id="upload-images-btn" href="javascript:;" class="button bg pick-btn" style="border: 0;padding: 0;">选择图片</a>
							</div>
						</div>
					</div>
				</div>
				<div class="x1"></div>
				<div class="x8">
					<div class="form-group">
						<div class="form-group">
							<div class="label">
								<label>&nbsp;</label>
							</div>
							<div class="field">
								<div class="filelist"></div>
								<input type="hidden" name="image" id="image" value="${information.image}"/>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="line">
				<div class="x12">
					<div class="form-group">
						<div class="label">
							<label>内容</label>
						</div>
						<div class="field">
							<script id="content" name="content" type="text/plain" style="width:auto;height:320px;">${information.content}</script>
						</div>
					</div>
				</div>
			</div>
			<br/>
			<div class="form-button">
				<button id="save-btn" class="button bg-main" type="button">保存</button>
				<button onclick="locationHref('<c:url value='/admin/information/list?type=${information.type}' />')" class="button bg-gray" type="button">返回</button>
			</div>
		</form>
	</div>
</div>
</body>
</html>